// @import "qup-theme";
body{
  overflow: auto;

  &::-webkit-scrollbar-track-piece{
    background-color: transparent;
    border: 0;
  }
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 1em;
    background-color: rgba(50,50,50,.3);
  }
}
/* 通用单选框 */
.el-radio-group .el-radio .el-radio__label{
  font-size: 12px;
}
/* 通用单选框 */
/* 通用mini文本框和按钮 */
.el-input.el-input--mini .el-input__inner{
  height: 28px;
  line-height: 28px;
  padding: 0 10px !important;
}
.el-input--mini .el-textarea__inner{
  padding: 5px 10px !important;
}
.el-button--mini,.el-button--small{
  padding: 0 15px !important;
  height: 28px !important;
  line-height: 26px !important;
}
/* 通用mini文本框和按钮 */
/* 通用弹出提示框样式 */
.el-message-box{

  .el-message-box__status + .el-message-box__message{
    padding-left: 30px !important;
  }

  .el-message-box__status.el-icon-warning{
    font-size: 20px !important;
    color: $qup-color-warning;
  }

  .el-message-box__header{
    // border-bottom: 1px solid #f0f0f0;

    .el-message-box__title{
      font-size: 14px;
      color: $colorA;
      font-weight: 600;
      font-family: PingFangSC-Semibold;
    }

    .el-message-box__headerbtn{
      .el-message-box__close{
        color: $colorC;
      }
    }
  }
.el-message-box__status.el-icon-warning
  .el-message-box__message{
    font-size: 12px;
    color: $colorA;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  // .el-message-box__btns{
  //   border-top: 1px solid #f0f0f0;
  //   padding-top: 10px;
  // }
}
/* 通用弹出提示框样式 */

/* 通用标题块 */
.qup-title-box{
  color: $colorA;
  font-weight: 600;
  font-size: 14px;

  .border{
    display: inline-block;
    width: 2px;
    height: 18px;
    margin-right: 4px;
    background-color: $qup-color-primary;
    vertical-align: -4px;
  }
}
/* 通用标题块 */

/* 通用弹出操作框样式 */
.el-dialog {
  border-radius: 4px !important;
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;

  .el-dialog__header{
    border-bottom: 1px solid #f0f0f0;
    padding: 0 20px;
    height: 40px;
    line-height: 40px;

    .el-dialog__title{
      font-size: 14px;
      color: $colorA;
      font-family: PingFangSC-Semibold;
      font-weight: 600;
    }

    .el-dialog__headerbtn{
      top: 10px;
      color: #ccc;
    }
  }

  .el-dialog__body{
    padding: 20px;
    font-size: 12px;
    color: $colorA;
  }

  .el-dialog__footer{
    border-top: 1px solid #eee;
    padding: 0 20px;
    height: 60px;
    line-height: 60px;
  }
}
/* 通用弹出操作框样式 */


/* 通用滚动条样式 */
.page-scrollbar.el-scrollbar{
  height: 100%;

  .el-scrollbar__wrap {
    overflow-x: hidden;
  }
}
/* 通用滚动条样式 */
/* 通用满屏高度 */
.main-view-box{
  .main-view-content{
    height: calc(100vh - 96px);
  }
}
/* 通用满屏高度 */
/* 通用表格筛选样式 */
.checkbox-filter-box {
  display: flex;
  margin-top: 9px;
  margin-bottom: 3px;
  .el-checkbox__label{
    font-size: 12px;
  }
  .label{
    min-width: 40px;
    text-align: left;
    margin-right: 10px;
    color: $colorA;
    padding-top: 2px;
  }
  .check-box{
    .el-checkbox{
      margin-bottom: 5px;
    }
  }
}
/* 通用表格筛选样式 */

/* 通用按钮 */
.el-button{
  border-radius: 4px !important;

  &.el-button--default:not(.el-button--primary){
    color: $qup-color-primary;
    border-color: $qup-color-primary;
  }
}
/* 通用按钮 */

/* 通用mini图标按钮 */
.icon-btn{
  &.el-button--mini{
    padding: 7px 12px;
    border: 1px solid #ddd;
    color: $colorB;
  }
  &.el-button + &.el-button{
    margin-left: 4px;
  }
}
/* 通用mini图标按钮 */

/* 按钮单选 */
.el-radio-button--mini .el-radio-button__inner{
  padding: 0 15px;
  height: 30px;
  line-height: 30px;
}
/* 按钮单选 */

/* 通用表格样式 */
.table-list-box{
  width: 100%;
  background-color: #fff;
  border: 1px solid #EBEEF5;
  margin-top: 5px;
  border-bottom: 0;
}
.el-table{
  font-size: 12px;
  // user-select: none;

  .el-table__body tr.current-row > td{
    background-color: $qup-table-select;
  }

  th{
    font-weight: 600 !important;
    color: #333 !important;
    padding: 0 !important;
    height: 30px !important;
  }

  td{
    padding: 0 !important;
    height: 36px !important;
  }
}
.el-table__body-wrapper{
  &::-webkit-scrollbar-track-piece{
    background-color: transparent;
    border: 0;
  }
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 1em;
    background-color: rgba(50,50,50,.1);
  }
}
.table-list-header,.table-list-header th{
  background-color: #F6F6F6;
  font-size: 12px;
  font-weight: normal;
  color: $colorB;
  border-top: 1px solid #ddd;
}
.el-table__row{
  color: $colorA;
  font-size: 12px;
}
.el-form-item__label{
  font-size: 12px;
  font-weight: normal;
  padding-right: 6px;
  color: #333333
}
.el-table--enable-row-hover .el-table__body tr:hover > td{
    background-color: $qup-table-hover;
}
/* 通用表格样式 */

/* 通用下拉样式 */
.el-select-dropdown{

  .el-select-dropdown__item{
    font-size: 12px;
    height: 30px;
    line-height: 30px;
    font-weight: normal;
  }

  .el-select-dropdown__empty{
    font-size: 12px;
  }
}
/* 通用下拉样式 */

/* 通用文本框禁用样式 */
.el-input.is-disabled .el-input__inner{
  background-color: #F2F2F2;
  border-color: #ddd;
  color: #ccc;
}
/* 通用文本框禁用样式 */

/* 通用分页样式 */
.pagination-dropdown{
  border-radius: 0;
  border: 1px solid #eee;
  min-width: 100px !important;

  &[x-placement^="top"]{
    margin-bottom: 5px;
  }

  .el-select-dropdown__item{

    &.selected{
      background-color: $qup-color-primary;
      color: #fff;
    }
  }

  .el-select-dropdown__list{
    padding: 3px 3px 3px 2px;
  }

  .popper__arrow{
    display: none;
  }
}

.pagination-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  // height: 32px !important;
  // padding: 5px 0 !important;
  margin: 8px 0 !important;

  .el-input.is-focus .el-input__inner{
    border-color: $qup-color-primary !important;
  }

  .el-input__inner:focus{
    border-color: $qup-color-primary !important;
  }

  .pagination-info{
    padding: 2px 0 !important;
    font-size: 12px !important;

    .total{
      color: $qup-color-primary;
    }
  }

  .el-pager li.active{
    border-radius: 50% !important;
    background-color: $qup-color-primary;
    color: #fff;
    font-weight: normal;
  }

  .el-pager li{
    min-width: 28px !important;
    padding: 0 !important;
    margin: 0 6px !important;
  }

  .el-input__inner{
    font-size: 12px !important;
  }

  .el-pagination{
    padding: 2px 0;
  }

  .el-pagination .el-select .el-input{
    margin: 0;
  }
}
.pagination-container.hidden {
  display: none;
}

.el-pagination__jump{
  font-size: 12px !important;
}
/* 通用分页样式 */

/* 通用tab样式 */
.el-tabs__item{
  font-size: 12px !important;
}
/* 通用tab样式 */

/* 穿梭框样式 */
.el-transfer{
  font-size: 12px !important;

  .el-checkbox__label{
    font-size: 12px !important;
  }
}
/* 穿梭框样式 */

/* 组合查询通用样式 */
.lnk-combinefilter .el-dialog {
  width: 786px;

  .el-button + .el-button{
    margin-left: 6px;
  }

  .el-dialog__footer{
    padding-right: 40px;
  }
}

.lnk-combinefilter .el-select-dropdown__wrap{
margin-bottom: -12px !important;
}

.lnk-combinefilter .clearfix:before,
.lnk-combinefilter .clearfix:after {
  content: " ";
  display: table;
}

.lnk-combinefilter .label {
  font-size: 12px;
  font-weight: bold;
  margin: 0 0 24px 24px;
}

.lnk-combinefilter .el-dialog .el-dialog__body {
  background: #fff;
  padding: 24px 0 15px 0!important;
}

.lnk-combinefilter .el-dialog__footer .button-footer-box{
  text-align: center;
}

.lnk-combinefilter .el-dialog__footer .el-button {
  width: 68px;
  height: 28px;
  line-height: 28px;
  padding: 0;
  float: none !important;
  font-size: 12px;
}

.lnk-combinefilter .el-button.blue {
  background: $qup-color-primary !important;
  border-color: $qup-color-primary !important;
  color: #FFFFFF !important;
}

.lnk-combinefilter.dms-color .el-button.blue {
  background: $qup-color-primary !important;
  border-color: $qup-color-primary !important;
  color: #FFFFFF !important;
}

.lnk-combinefilter .filterbox {
  margin: 0 20px 0 20px;
  max-height: 248px;
  overflow-x: hidden;
  overflow-y: auto;
}

.lnk-combinefilter .filterbox .formbox.el-row {
  margin-top: -16px;
}

.lnk-combinefilter .filterbox .filter-item {
  margin-top: 16px;
}

.lnk-combinefilter .filterbox .filter-item .el-input {
  width: 220px;
}

.el-date-editor.el-input--prefix .el-input__inner{
  padding-left: 30px !important;
}

.lnk-combinefilter .filterbox .filter-item .el-input__inner {
  width: 220px;
  font-size: 12px;
  height: 28px;
  line-height: 28px;
}

.lnk-combinefilter .filterbox .filter-item .el-select {
  margin-right: 10px;
}
.lnk-combinefilter .filterbox .filter-item .el-select.multi-inputbox{
  margin-right: 0;
}
.lnk-combinefilter .filterbox .filter-item .el-select-dropdown__item span {
  line-height: 25px !important;
}

.lnk-combinefilter .filterbox .filter-item .el-select-dropdown.el-popper {
  border-radius: 0 !important;
}

.lnk-combinefilter .filterbox .filter-item .el-select .el-input.is-disabled .el-input__inner {
  height: 28px;
}

.lnk-combinefilter .filterbox .filter-item .el-select.value-select {
  margin-right: 0;
}

.lnk-combinefilter .filterbox .filter-item .el-form-item {
  display: inline-block;
  margin-bottom: 0;
}

.lnk-combinefilter .filterbox .filter-item .el-form-item__content {
  line-height: 28px;
}

.lnk-combinefilter .filterbox .filter-item .el-date-editor .el-range__icon {
  font-size: 12px;
}

.lnk-combinefilter .el-select-dropdown__item {
  font-size: 12px;
  height: 25px;
  line-height: 25px;
}

.lnk-combinefilter .el-select-dropdown__empty {
  padding: 5px 0;
  font-size: 12px;
}

.lnk-combinefilter .filterbox .filter-item .filter-item-del {
  margin-left: 20px;
  font-size: 14px;
  color: $colorC;
  padding: 0;
  border: 0;
}

.lnk-combinefilter .filterbox_footer {
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding: 0 40px 0 20px;
  padding-top: 15px;
}

.lnk-combinefilter .filterbox_footer .el-button {
  height: 30px;
  padding: 0;
  float: none !important;
  font-size: 12px;
}

.lnk-combinefilter .filterbox_footer .el-button.clear {
  width: 68px;
  height: 28px;
  line-height: 28px;
  margin-left: 3px;
}

.lnk-combinefilter .filterbox_footer .button-left-box{
  flex: 1;
}

.lnk-combinefilter .filterbox_footer .el-button.add {
  width: 100px;
  height: 28px;
  line-height: 28px;
}

.lnk-combinefilter.save .el-dialog {
  width: 504px;
}

.lnk-combinefilter.selector .el-dialog {
  width: 680px;
}

.lnk-combinefilter.selector .el-dialog .el-dialog__body {
  padding: 24px 16px 16px 16px;
}

.lnk-combinefilter.save .el-dialog .el-dialog__body {
  padding: 24px 16px 16px 16px;
}

.lnk-combinefilter .el-dialog__headerbtn .el-dialog__close{
  &:hover{
    color: $qup-color-primary !important;
  }
}

.lnk-combinefilter .el-select .el-input.is-focus .el-input__inner{
  border-color: $qup-color-primary !important;
}

.lnk-combinefilter .el-input__inner:focus{
  border-color: $qup-color-primary !important;
}

.lnk-combinefilter.save .el-dialog .el-form .el-form-item__label {
  width: 115px;
  font-size: 12px;
  font-weight: bold;
  color: #909399;
}

.lnk-combinefilter.save .el-dialog .el-form .el-form-item__content {
  margin-left: 115px;
}

.lnk-combinefilter.save .el-dialog .el-form .el-input__inner {
  border-radius: 0;
  width: 280px;
  height: 28px;
  line-height: 28px;
}
.lnk-combinefilter{
  ::-webkit-scrollbar{
      width: 8px;
      height: 8px;
  }
  ::-webkit-scrollbar-thumb{
      border-radius: 1em;
      background-color: rgba(50,50,50,.1);
  }
  ::-webkit-scrollbar-track{
      background-color: transparent;
  }
}
/* 组合查询通用样式 */
/* 查询通用样式 */
.filter-box{
  .el-button{
    border: 1px solid $qup-color-primary;
    background-color: $qup-color-primary;
  }
  .el-select .el-input.is-focus .el-input__inner{
    border-color: $qup-color-primary !important;
  }
  .el-input__inner:focus{
    border-color: $qup-color-primary !important;
  }
}

.select-popper {
  border-radius: 0;
  border: 1px solid #ddd;
  box-shadow: none;

  .el-select-dropdown__item.selected{
    color: $qup-color-primary !important;
  }

  .el-select-dropdown__list {
    padding: 2px;

    .el-select-dropdown__item {
      height: 30px;
      line-height: 30px;
    }
  }

  &.el-popper[x-placement^="bottom"] {
    margin-top: 6px;
  }

  .popper__arrow {
    display: none;
  }
}

.lately-popper-box {
  margin-top: 5px !important;
  border: 1px solid #e8e8e8;
  font-size: 12px !important;
  border-radius: 0;
  box-shadow: none;
  padding: 10px;
  color: #333;

  .search-lately-item {

    .item {
      cursor: pointer;
      padding-bottom: 8px;

      &:hover {
        color: $qup-color-primary !important;
      }

      &:last-child {
        padding-bottom: 0;
      }

      &.other {
        color: $qup-color-primary !important;

        .el-icon-setting {
          display: inline-block;
          margin-right: 2px;
        }
      }
    }
  }
}

.more-dropdown{
  margin-top: 5px !important;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  box-shadow: none;

  .el-dropdown-menu__item{
    font-size: 12px !important;
    padding: 0 12px;
  }

  .el-select-dropdown__item.selected{
    color: $qup-color-primary !important;
  }

  .el-dropdown-menu__item:not(.is-disabled):hover, .el-dropdown-menu__item:focus{
    color: $qup-color-primary !important;
    background-color: $qup-color-hover !important;
  }
}

.function-box{

  .btn-box{

    .el-button--primary{
      background-color: $qup-color-primary !important;
      border-color: $qup-color-primary !important;
    }
  }
}
/* 查询通用样式 */

/* 组织管理树形组件 */
.treemenu-open{
  position: absolute;
  display: none;
  top: 50%;
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 20px 0px rgba(153,153,153,0.3);
  margin-top: -12px;
  left: 0;
  z-index: 10;
  cursor: pointer;

  .icon{
    font-size: 16px !important;
    color: #c0c0c0;
    margin-top: 4px;
  }

  img{
    width: 24px;
  }

  &.show{
    display: block;
  }
}

.org-tree-box{
  position: relative;
  z-index: 5;
  background-color: #fff;
  width: 230px;
  padding-bottom: 20px;
  font-size: 12px;
  color: $colorA;
  box-shadow: 0px 2px 20px 0px rgba(153,153,153,0.24);

  &.hide{
    display: none;
  }

  .treemenu-close{
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 20px 0px rgba(153,153,153,0.3);
    margin-top: -12px;
    right: -12px;
    z-index: 10;
    cursor: pointer;

    .icon{
      font-size: 16px;
      color: #c0c0c0;
      margin-top: 4px;
    }

    img{
      width: 24px;
    }
  }

  .tree-header{

    .title{
      padding: 20px;
      padding-bottom: 10px;
    }

    .search{
      padding-left: 20px;
      padding-right: 10px;
      margin-bottom: 10px;

      .el-input__inner{
        border: 0;
        padding-left: 20px !important;
        padding-right: 0 !important;
        height: 20px !important;
        line-height: 20px !important;
      }

      .el-input__prefix{
        left: 0;

        .tree-search-icon{
          font-size: 16px;
          color: $colorA;
          margin-top: 2px;
        }
      }
    }
  }

  .custom-tree-node{
    position: relative;
    display: flex;
    width: 100%;

    .name-text-box{
      font-style: normal;
      overflow: hidden;
      width: 160px;
      text-overflow: ellipsis;

      .wenjianjia{
        margin-right: 4px !important;
      }
    }

    .add-icon{
      display: none;
      position: absolute;
      right: 20px;
      top: 2px;

      .add{
        font-size: 16px;
        color: $qup-color-primary;
      }
    }
    .folder-icon{
      margin-right: 4px;
      font-size: 16px;
      color: #f90;
    }
  }

  .el-tree-node{

    .el-tree-node__content>.el-tree-node__expand-icon{
      padding: 0;
      margin-left: 5px;
    }

    &:focus>.el-tree-node__content{
      background-color: $qup-color-hover;
    }

    .el-tree-node__content{
      padding-right: 10px;
      height: 30px;
      line-height: 30px;

      &:focus>.el-tree-node__content{
        background-color: $qup-color-hover;
      }

      &:hover{
        background-color: $qup-color-hover;

        .add-icon.show{
          display: block;
        }
      }
    }
  }
}
/* 组织管理树形组件 */

/* 表格排序箭头 */
.el-table .caret-wrapper{
  height: 30px !important;

  .sort-caret.descending{
    bottom: 5px !important;
  }

  .sort-caret.ascending{
    top: 3px !important;
  }
}
/* 表格排序箭头 */


/* 通用子操作页面顶部按钮块 */
.children-page-title{
  display: flex;
  justify-content: space-between;
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  border-bottom: 1px solid #f7f7f7;

  .page-path{
    color: $qup-color-primary;
  }
}
/* 通用子操作页面顶部按钮块 */

/* 通用筛选样式 */
.el-checkbox__label{

  font-size: 12px !important;
}
/* 通用筛选样式 */

/* 通用列表样式 */
.list-box{
  margin-bottom: 20px;

  &:last-child{
    margin-bottom: 0;
  }
  
  .list-title-box{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 38px;
    background-color: #eee;
    box-shadow: 0px -1px 0px 0px rgba(238,238,238,1);
    border-radius: 4px 4px 0px 0px;
    padding: 0 20px;

    .title-text{
      display: inline-block;
      font-size: 14px;
      font-weight: 600;
      color: $colorA;
      padding-left: 5px;
      border-left: 2px solid $qup-color-primary;
    }

    .title-icon{
      color: #ccc;
      font-size: 22px;
      cursor: pointer;
    }
  }
  .list-content-box{
    padding: 10px 20px;
    border: 1px solid #eee;
    overflow: hidden;

    .list-content-item{
      display: flex;
      height: 30px;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;

      .left{
        color: $colorA;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        .tag{
          display: inline-block;
          padding: 1px 5px;
          color: #F15643;
          background-color: rgba(241,86,67,.1);
          margin-right: 5px;
        }

        .link:hover{
          color: $qup-color-primary;
        }
      }
      .right{
        display: flex;
        color: $colorC;
        text-align: right;

        .info{
          flex: 1;
          margin-left: 5px;

          &:first-child{
            margin-left: 0;
          }
        }
      }
    }
  }
}
/* 通用列表样式 */